<?php
/**
 * Created by PhpStorm.
 * User: mawenhuan
 * Date: 2019-05-30
 * Time: 11:37
 */

namespace App\Models\Meimei\Traits;


trait HideTimestamp
{
    public function hideTimestamp($cols = ['created_at', 'updated_at', 'deleted_at'])
    {
        foreach ($cols as $col){
            if(isset($this->$col))
                unset($this->$col);
        }
        return $this;
    }

}